package cn.home.sysmanagement.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.home.common.annotation.Excel;
import cn.home.common.core.domain.BaseEntity;

/**
 * 公告对象 home_message
 * 
 * @author homedoctor
 * @date 2025-04-10
 */
public class HomeMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公告消息编号(排序号) */
    private Long id;

    /** 公告消息标题 */
    @Excel(name = "公告消息标题")
    private String messageTitle;

    /** 公告消息内容 */
    @Excel(name = "公告消息内容")
    private String messageContext;

    /** 公告消息发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "公告消息发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date relaseTime;



    /** 发布人（多表联查医生表） */
    @Excel(name = "发布人", readConverterExp = "多=表联查医生表")
    private String relasePerson;

    /** 编辑时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "编辑时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date editTime;

    /** 扩展1 */
    private int messstatus;

    /** 扩展2 */
    private String exp2;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMessageTitle(String messageTitle) 
    {
        this.messageTitle = messageTitle;
    }

    public String getMessageTitle() 
    {
        return messageTitle;
    }

    public void setMessageContext(String messageContext) 
    {
        this.messageContext = messageContext;
    }

    public String getMessageContext() 
    {
        return messageContext;
    }

    public void setRelaseTime(Date relaseTime) 
    {
        this.relaseTime = relaseTime;
    }

    public Date getRelaseTime() 
    {
        return relaseTime;
    }



    public void setRelasePerson(String relasePerson) 
    {
        this.relasePerson = relasePerson;
    }

    public String getRelasePerson() 
    {
        return relasePerson;
    }

    public void setEditTime(Date editTime) 
    {
        this.editTime = editTime;
    }

    public Date getEditTime() 
    {
        return editTime;
    }

    public void setmessstatus(int exp1)
    {
        this.messstatus = exp1;
    }

    public int getmessstatus()
    {
        return messstatus;
    }

    public void setExp2(String exp2) 
    {
        this.exp2 = exp2;
    }

    public String getExp2() 
    {
        return exp2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("messageTitle", getMessageTitle())
            .append("messageContext", getMessageContext())
            .append("relaseTime", getRelaseTime())

            .append("relasePerson", getRelasePerson())
            .append("editTime", getEditTime())
            .append("messstatus", getmessstatus())
            .append("exp2", getExp2())
            .toString();
    }
}
